package com.woniuxy.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.shop.entity.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fanqiwen
 * @since 2023-02-07 11:56:02
 */
@Mapper
public interface CartMapper extends BaseMapper<Cart> {
    @Select("select * from t_cart where product_id=#{prodectId} and user_id=#{userId} ")
    Cart getCartByProductIdAndUserId(Integer prodectId, Integer userId);
}
